package com.ndky2;

public class MyClass2 {
    public int x;

    public MyClass2(int y) {
        System.out.println("包com.ndky2，构造MyClass");
        x = y + 10;
    }

    public static void main(String[] args) {
        MyClass2 myObj = new MyClass2(10);
        System.out.println(myObj.x);
    }
}

